import pypyodbc

conn = pypyodbc.win_connect_mdb('C:\\Users\\Administrator\\Desktop\\15\\demo\\student.mdb')
cur = conn.cursor()
sql = "INSERT INTO stu values(124, 'zhangsan')"
cur.execute(sql)
cur.commit()
conn.close()
